<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="ViewCCDetails.aspx.cs" Inherits="Admin_credit_card_ViewCCDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="contents">
    <table width="100%" cellpadding="3" cellspacing="0" border="0">
        <tr>
            <td>
                <h1>View Credit Card Info</h1>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="grvCCDetails" runat="server" AllowPaging="True" AllowSorting="True" PageSize="10"
                    AutoGenerateColumns="false" Cellspacing="3" CellPadding="3" Width="100%" DataKeyNames="CCId"
                    DataSourceID="sqlDsCards" EmptyDataText="There are no data records to display."
                    CssClass="admin_gridstyle" PagerStyle-CssClass="pgr" GridLines="None" OnSelectedIndexChanged="grvCCDetails_SelectedIndexChanged">
                    <Columns>
                        <asp:BoundField DataField="CCId" HeaderText="CardId" InsertVisible="False"
                            ReadOnly="True" SortExpression="CCId" Visible="False" />
                        <asp:BoundField DataField="CompanyName" HeaderText="Financial Institute" SortExpression="CompanyName" />
                        <asp:BoundField DataField="ProductName" HeaderText="Product Name" SortExpression="ProductName" />
                        <asp:BoundField DataField="CCClassname" HeaderText="Card Class" SortExpression="CCClassname" />
                        <asp:BoundField DataField="CCStatusname" HeaderText="Card Status" SortExpression="CCStatusname" />
                        <asp:BoundField DataField="CCTypename" HeaderText="Card Type" SortExpression="CCTypename" />
                        <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                        <asp:CommandField ShowSelectButton="True" SelectText="Edit" />
                    </Columns>
                    <FooterStyle />
                    <PagerStyle />
                    <SelectedRowStyle />
                    <HeaderStyle CssClass="admin_gridheader" />
                    <EditRowStyle />
                    <AlternatingRowStyle CssClass="admin_gridodd" />
                    <RowStyle CssClass="admin_grideven" />
                </asp:GridView>
                <asp:SqlDataSource ID="sqlDsCards" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>" SelectCommand="sprocCCDetaisSelectItemList" 
                    SelectCommandType="StoredProcedure">
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</div>
</asp:Content>

